package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

/**
 * 班级实体类
 */
@TableName("t_class")
public class ClassBean {
    /**班级编号*/
    @TableId(value = "pk_classId",type = IdType.AUTO)
    private int id;
    /**班级名称*/
    @TableField("c_name")
    private String name;
    /**开班时间*/
    @TableField("c_createDate")
    private LocalDate createDate;
    /**带班老师*/
    @TableField("c_teacher")
    private String teacher;

    public ClassBean(String name, LocalDate createDate, String teacher) {
        this.name = name;
        this.createDate = createDate;
        this.teacher = teacher;
    }

    public ClassBean() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDate creteDate) {
        this.createDate = creteDate;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    @Override
    public String toString() {
        return "ClassBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", createDate=" + createDate +
                ", teacher='" + teacher + '\'' +
                '}';
    }
}
